<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/corelib/io/qdir.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QDir</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QDir</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qdir.html">QDir class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/>QString <b><a href="qdir-qt3.html#absFilePath">absFilePath</a></b> ( const QString &amp; <i>fileName</i>, bool <i>acceptAbsPath</i> = true ) const</li>
<li><div class="fn"/>QString <b><a href="qdir-qt3.html#absPath">absPath</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qdir-qt3.html#convertToAbs">convertToAbs</a></b> ()</li>
<li><div class="fn"/>QFileInfoList <b><a href="qdir-qt3.html#entryInfoList-3">entryInfoList</a></b> ( const QString &amp; <i>nameFilter</i>, Filters <i>filters</i> = NoFilter, SortFlags <i>sort</i> = NoSort ) const</li>
<li><div class="fn"/>QStringList <b><a href="qdir-qt3.html#entryList-3">entryList</a></b> ( const QString &amp; <i>nameFilter</i>, Filters <i>filters</i> = NoFilter, SortFlags <i>sort</i> = NoSort ) const</li>
<li><div class="fn"/>bool <b><a href="qdir-qt3.html#matchAllDirs">matchAllDirs</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qdir-qt3.html#mkdir-2">mkdir</a></b> ( const QString &amp; <i>dirName</i>, bool <i>acceptAbsPath</i> ) const</li>
<li><div class="fn"/>QString <b><a href="qdir-qt3.html#nameFilter">nameFilter</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qdir-qt3.html#rmdir-2">rmdir</a></b> ( const QString &amp; <i>dirName</i>, bool <i>acceptAbsPath</i> ) const</li>
<li><div class="fn"/>void <b><a href="qdir-qt3.html#setMatchAllDirs">setMatchAllDirs</a></b> ( bool <i>on</i> )</li>
<li><div class="fn"/>void <b><a href="qdir-qt3.html#setNameFilter">setNameFilter</a></b> ( const QString &amp; <i>nameFilter</i> )</li>
</ul>
<h3>Static Public Members</h3>
<ul>
<li><div class="fn"/>QString <b><a href="qdir-qt3.html#cleanDirPath">cleanDirPath</a></b> ( const QString &amp; <i>name</i> )</li>
<li><div class="fn"/>QString <b><a href="qdir-qt3.html#currentDirPath">currentDirPath</a></b> ()</li>
<li><div class="fn"/>QString <b><a href="qdir-qt3.html#homeDirPath">homeDirPath</a></b> ()</li>
<li><div class="fn"/>QString <b><a href="qdir-qt3.html#rootDirPath">rootDirPath</a></b> ()</li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="absFilePath"></a><a href="qstring.html">QString</a> QDir::absFilePath ( const <a href="qstring.html">QString</a> &amp; <i>fileName</i>, bool <i>acceptAbsPath</i> = true ) const</h3>
<p>Use absoluteFilePath(<i>fileName</i>) instead.</p>
<p>The <i>acceptAbsPath</i> parameter is ignored.</p>
<h3 class="fn"><a name="absPath"></a><a href="qstring.html">QString</a> QDir::absPath () const</h3>
<p>Use <a href="qdir.html#absolutePath">absolutePath</a>() instead.</p>
<h3 class="fn"><a name="cleanDirPath"></a><a href="qstring.html">QString</a> QDir::cleanDirPath ( const <a href="qstring.html">QString</a> &amp; <i>name</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qdir.html#cleanPath">cleanPath</a>() instead.</p>
<h3 class="fn"><a name="convertToAbs"></a>void QDir::convertToAbs ()</h3>
<p>Use <a href="qdir.html#makeAbsolute">makeAbsolute</a>() instead.</p>
<h3 class="fn"><a name="currentDirPath"></a><a href="qstring.html">QString</a> QDir::currentDirPath ()&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Returns the absolute path of the application's current directory.</p>
<p>Use <a href="qdir.html#currentPath">currentPath</a>() instead.</p>
<p>See also <a href="qdir.html#currentPath">currentPath</a>().</p>
<h3 class="fn"><a name="entryInfoList-3"></a><a href="qfileinfo.html#QFileInfoList-typedef">QFileInfoList</a> QDir::entryInfoList ( const <a href="qstring.html">QString</a> &amp; <i>nameFilter</i>, <a href="qdir.html#Filter-enum">Filters</a> <i>filters</i> = NoFilter, <a href="qdir.html#SortFlag-enum">SortFlags</a> <i>sort</i> = NoSort ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use the overload that takes a name filter string list as first argument instead of a combination of attribute filter flags.</p>
<h3 class="fn"><a name="entryList-3"></a><a href="qstringlist.html">QStringList</a> QDir::entryList ( const <a href="qstring.html">QString</a> &amp; <i>nameFilter</i>, <a href="qdir.html#Filter-enum">Filters</a> <i>filters</i> = NoFilter, <a href="qdir.html#SortFlag-enum">SortFlags</a> <i>sort</i> = NoSort ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use the overload that takes a name filter string list as first argument instead of a combination of attribute filter flags.</p>
<h3 class="fn"><a name="homeDirPath"></a><a href="qstring.html">QString</a> QDir::homeDirPath ()&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Returns the absolute path of the user's home directory.</p>
<p>Use <a href="qdir.html#homePath">homePath</a>() instead.</p>
<p>See also <a href="qdir.html#homePath">homePath</a>().</p>
<h3 class="fn"><a name="matchAllDirs"></a>bool QDir::matchAllDirs () const</h3>
<p>Use <a href="qdir.html#filter">filter</a>() &amp; <a href="qdir.html#Filter-enum">AllDirs</a> instead.</p>
<p>See also <a href="qdir-qt3.html#setMatchAllDirs">setMatchAllDirs</a>().</p>
<h3 class="fn"><a name="mkdir-2"></a>bool QDir::mkdir ( const <a href="qstring.html">QString</a> &amp; <i>dirName</i>, bool <i>acceptAbsPath</i> ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use mkdir(<i>dirName</i>) instead.</p>
<p>The <i>acceptAbsPath</i> parameter is ignored.</p>
<h3 class="fn"><a name="nameFilter"></a><a href="qstring.html">QString</a> QDir::nameFilter () const</h3>
<p>Use <a href="qdir.html#nameFilters">nameFilters</a>() instead.</p>
<p>See also <a href="qdir-qt3.html#setNameFilter">setNameFilter</a>().</p>
<h3 class="fn"><a name="rmdir-2"></a>bool QDir::rmdir ( const <a href="qstring.html">QString</a> &amp; <i>dirName</i>, bool <i>acceptAbsPath</i> ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use rmdir(<i>dirName</i>) instead.</p>
<p>The <i>acceptAbsPath</i> parameter is ignored.</p>
<h3 class="fn"><a name="rootDirPath"></a><a href="qstring.html">QString</a> QDir::rootDirPath ()&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Returns the absolute path of the root directory.</p>
<p>Use <a href="qdir.html#rootPath">rootPath</a>() instead.</p>
<p>See also <a href="qdir.html#rootPath">rootPath</a>().</p>
<h3 class="fn"><a name="setMatchAllDirs"></a>void QDir::setMatchAllDirs ( bool <i>on</i> )</h3>
<p>Use <a href="qdir.html#setFilter">setFilter</a>() instead.</p>
<p>See also <a href="qdir-qt3.html#matchAllDirs">matchAllDirs</a>().</p>
<h3 class="fn"><a name="setNameFilter"></a>void QDir::setNameFilter ( const <a href="qstring.html">QString</a> &amp; <i>nameFilter</i> )</h3>
<p>Use <a href="qdir.html#setNameFilters">setNameFilters</a>() instead.</p>
<p>The <i>nameFilter</i> is a wildcard (globbing) filter that understands &quot;*&quot; and &quot;?&quot; wildcards. (See <a href="qregexp.html#qregexp-wildcard-matching">QRegExp wildcard matching</a>.) You may specify several filter entries, each separated by spaces or by semicolons.</p>
<p>For example, if you want <a href="qdir.html#entryList">entryList</a>() and <a href="qdir.html#entryInfoList">entryInfoList</a>() to list all files ending with either &quot;.cpp&quot; or &quot;.h&quot;, you would use either dir.setNameFilters(&quot;*.cpp *.h&quot;) or dir.setNameFilters(&quot;*.cpp;*.h&quot;).</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> QString filter = &quot;*.cpp *.cxx *.cc&quot;;
 dir.setNameFilter(filter);</font></pre>
<p>you can rewrite it as</p>
<pre> QString filter = &quot;*.cpp *.cxx *.cc&quot;;
 dir.setNameFilters(filter.split(' '));</pre>
<p>See also <a href="qdir-qt3.html#nameFilter">nameFilter</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
